package com.easymin.weixin.mapper;

import com.easymin.weixin.entity.WxAccount;
import com.easymin.weixin.entity.WxAccountCriteria;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface WxAccountMapper extends BaseMapper<WxAccount, WxAccountCriteria, Long> {
  Long countByExample(WxAccountCriteria example);

  int deleteByExample(WxAccountCriteria example);

  int deleteByPrimaryKey(Long id);

  int insert(WxAccount record);

  int insertSelective(WxAccount record);

  List<WxAccount> selectByExampleWithRowbounds(WxAccountCriteria example, RowBounds rowBounds);

  List<WxAccount> selectByExample(WxAccountCriteria example);

  WxAccount selectByPrimaryKey(Long id);

  int updateByExampleSelective(@Param("record") WxAccount record,
      @Param("example") WxAccountCriteria example);

  int updateByExample(
      @Param("record") WxAccount record, @Param("example") WxAccountCriteria example);

  int updateByPrimaryKeySelective(WxAccount record);

  int updateByPrimaryKey(WxAccount record);
  
  WxAccount findByFileName(String fileName);
}
